#ifndef _RS485_FRAME_ASSEMBLE_H_
#define _RS485_FRAME_ASSEMBLE_H_

#include "rs485_comm_analyse_common.h"
uint16_t get_begin_register_addrss(uint8_t order_type);
uint16_t get_request_registet_count(uint8_t order_type);

int assemble_ctrl_request_relay_unit_frame(CTRL_REQ_ORDER_STRUCT *cro_st, uint8_t *send_data, uint16_t *send_lenth);
int assemble_request_relay_unit_frame(uint8_t box,
                                      uint16_t begin_register_addrss,
                                      uint16_t reqest_registet_count,
                                      uint8_t *send_data,
                                      uint16_t *send_lenth);
int assemble_ctrl_relay_unit_frame(uint8_t box,
                                   uint16_t begin_reg_addr,
                                   uint16_t reg_value,
                                   uint8_t *send_data,
                                   uint16_t *send_lenth);

#endif
